/*
 * Copyright (C) 2011, EADS France
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 */
package xowl.interpreter.backends.rdf;

/**
 *
 * @author Laurent WOUTERS
 */
public class RDFChange {
    private RDFTriple triple;
    private xowl.lang.owl2.Ontology ontology;
    private boolean isAdd;
    
    public RDFTriple getTriple() { return triple; }
    public xowl.lang.owl2.Ontology getOntology() { return ontology; }
    public boolean isAdd() { return isAdd; }
    
    public RDFChange(RDFTriple triple, xowl.lang.owl2.Ontology ontology, boolean isAdd) {
        this.triple = triple;
        this.ontology = ontology;
        this.isAdd = isAdd;
    }
    
    public RDFChange getNegative() { return new RDFChange(triple, ontology, !isAdd); }
}
